package com.geeguo.ebuilder.client.business.system.excelimport.service;

import com.geeguo.ebuilder.client.base.tenant.model.DataContext;
import com.geeguo.ebuilder.client.business.system.excelimport.model.ExcelImportEntity;
import com.geeguo.ebuilder.client.business.system.excelimport.model.ExcelImportQuery;
import com.geeguo.ebuilder.client.business.system.excelimport.model.ExcelImportVO;
import com.geeguo.ebuilder.core.common.model.vo.PageListVO;

import java.util.Date;

public interface ExcelImportService {

    PageListVO<ExcelImportVO> list(ExcelImportQuery query, DataContext dataContext);

    ExcelImportVO get(String id, DataContext dataContext);

    Integer countUnfinished(String userId, DataContext dataContext);

    boolean save(ExcelImportEntity entity, DataContext dataContext);

    boolean updatePending(String id, DataContext dataContext);

    boolean updateProcessing(String id, Date startTime, DataContext dataContext);

    boolean updateFinished(String id, Date endTime, DataContext dataContext);

    boolean updateError(String id, String errorMessage, DataContext dataContext);

    boolean updateCount(String id, Integer successCount, Integer failCount, DataContext dataContext);

    boolean remove(String id, DataContext dataContext);
}
